% 文档类
\documentclass{article}
% 导言区
\usepackage{ctex}
\usepackage{zhlipsum}
\usepackage{graphicx}
\usepackage{mwe}

% 排版子图
\usepackage{subcaption}

% 正文区
\begin{document}
	
\zhlipsum[1]	
	
\begin{figure}[htbp]		
	\centering		
	\begin{subfigure}{.40\textwidth}
		\centering
		\includegraphics[width=\textwidth]{example-image-a}			
		\caption{示例图A}			
	\end{subfigure}
	\begin{subfigure}{.40\textwidth}
		\centering
		\includegraphics[width=\textwidth]{example-image-b}			
		\caption{示例图B}
	\end{subfigure}
	\caption{子图样例}
    \label{fig:example}
\end{figure}
	
\end{document}